<template>
  <div>
    <div>使用组件对象为弹窗内部组件</div>
    <div>
      <button @click="handleClick">点击1123</button>
    </div>
  </div>
</template>

<script>
const vueOptingComponent = {
  template: `<div>单据id:{{ id }}</div>`,
  props: {
    id: {
      type: Number,
    }
  },
}
export default {
  methods: {
    handleClick() {
      const component = vueOptingComponent
      const dialog =  this.$dialog(component,{
        props:{
          id: 23442342334234
        }
      })
    }
  }
}
</script>

<style>

</style>